package cn.dao;

import cn.entity.User;

import java.util.List;

public interface UserDao {

    public User get(Integer id);

    public User load(Integer id);

    public void save(User user);

    public void delete(User user);

    public void update(User user);

    public void saveOrUpdate(User user);

    public void merge(User user);

    public List<User>  findByUserName(String userName);

    public Long findUserCount();

    public List<User> findPage(Integer pageNo,Integer pageSize);

    public  User login(String username);

    public  Integer register(User user);

    public List<User> findAllUser();

}
